package com.itheima.bytes;

import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public class Demo {

    public static void main(String[] args) throws UnsupportedEncodingException {

        String s = "楠辞琦咎";

        byte[] bytes = s.getBytes();

        String s1 = Arrays.toString(bytes);
        System.out.println(s1);

        System.out.println("-------------------------------");

        byte[] gbks = s.getBytes("GBK");
        System.out.println(Arrays.toString(gbks));
    }
}
